import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MessageV1Controller } from './message.v1-controller';
import { MessageModel } from './message.model';
import { MessageService } from './message.service';

@Module({
  imports: [TypeOrmModule.forFeature([MessageModel])],
  controllers: [MessageV1Controller],
  providers: [MessageService],
  exports: [MessageService],
})
export class MessageModule {}
